import { request } from '@/sheep/request';

const route = {
  path: 'goods',
  name: 'seller.admin.goods',
  component: () => import('./index.vue'),
  meta: {
    title: '商品服务',
  }
};

const api = {
  service:{
    list:(params) =>
      request({
        url: 'shop/admin/attr/shop_type/list',
        method: 'GET',
        params
      }),
    typeList:() =>
      request({
        url: 'shop/admin/attr/shop_type/type_list',
        method: 'GET',
      }),
    addType:(data) =>
      request({
        url: 'shop/admin/attr/shop_type',
        method: 'POST',
        data
      }),
    editType:(id,data) =>
      request({
        url: 'shop/admin/attr/shop_type/'+ id,
        method: 'PUT',
        data
      }),
    delType:(id) =>
      request({
        url: 'shop/admin/attr/shop_type/'+id,
        method: 'DELETE'
      }),
  }
  
};

export { route, api };